<!DOCTYPE html>
<html>

<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width,initial-scale=1.0">
  <title>soulless-web</title>
</head>

<body>
  <div id="app" style="border: 1px solid black;">
    <h1>Hello World!</h1>
    <p>
      <!--使用 router-link 组件进行导航 -->
      <!--通过传递 `to` 来指定链接 -->
      <!--`<router-link>` 将呈现一个带有正确 `href` 属性的 `<a>` 标签-->
      <router-link to="/张三">Go to Home</router-link> <br />
      <router-link :to="{name: 'home', params: {username: '命名路由'}}">Go to Home（命名）</router-link> <br />
      <router-link to="/about/李四">Go to About</router-link>
    </p>
    <!-- 路由出口 -->
    <!-- 路由匹配到的组件将渲染在这里 -->
    <router-view></router-view>
  </div>
  <!-- built files will be auto injected -->
</body>

</html>